package com.baselibrary.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class StreamData {
    public static final int busiType_top_article = 23;//置顶文章
    public static final int busiType_timeline_image = 21;//图片动态 timeline
    public static final int busiType_timeline_video = 22;//视频动态 timeline
    public static final int busiType_live = 3;//直播 live_room
    public static final int busiType_channel = 4;//专栏 channel
    public static final int busiType_article = 5;//专栏文章 article
    public static final int busiType_forum = 6;//视频（讲堂）forum
    public static final int busiType_qa_question = 7;//问答 qa_question
    public static final int busiType_wk_entries = 8;//词条 wk_entries
    public static final int busiType_party = 9;//约局 party
    public static final int busiType_advertisement = 10;//广告 advertisement

    private Boolean success;
    private DataDTO data;
    private Integer code;

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public class DataDTO {

        private String cursor;
        private Integer size;
        private Integer page;
        private String preCursor;
        private String nextCursor;
        private Integer count;
        private Integer totalCount;
        private Boolean hasnext;
        private Integer totalPage;
        public List<Data> data;

        public String getCursor() {
            return cursor;
        }

        public void setCursor(String cursor) {
            this.cursor = cursor;
        }

        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }

        public Integer getPage() {
            return page;
        }

        public void setPage(Integer page) {
            this.page = page;
        }

        public String getPreCursor() {
            return preCursor;
        }

        public void setPreCursor(String preCursor) {
            this.preCursor = preCursor;
        }

        public String getNextCursor() {
            return nextCursor;
        }

        public void setNextCursor(String nextCursor) {
            this.nextCursor = nextCursor;
        }

        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public Integer getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(Integer totalCount) {
            this.totalCount = totalCount;
        }

        public Boolean getHasnext() {
            return hasnext;
        }

        public void setHasnext(Boolean hasnext) {
            this.hasnext = hasnext;
        }

        public Integer getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(Integer totalPage) {
            this.totalPage = totalPage;
        }

        public List<Data> getData() {
            return data;
        }

        public void setData(List<Data> data) {
            this.data = data;
        }

        public class Data implements MultiItemEntity {
            private Integer busiType;
            private String idx;
            private Object data;
            private String remark;
            @Override
            public int getItemType() {
                return busiType;
            }

            public Integer getBusiType() {
                return busiType;
            }

            public void setBusiType(Integer busiType) {
                this.busiType = busiType;
            }

            public String getIdx() {
                return idx;
            }

            public void setIdx(String idx) {
                this.idx = idx;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }

            public Object getData() {
                return data;
            }

            public void setData(Object data) {
                this.data = data;
            }
        }
    }
}
